﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharp.Libs.ExceptionHandling;
using CSharp.Libs.Koc;
using CSharp.Libs.Misc;
using CSharp.Libs.Net;
using CSharp.Libs.WPF;
using System.Windows.Input;
using System.Collections.ObjectModel;



namespace KocAllianceLister
{
    class MainWindowViewModel : ViewModelBase
    {
        #region declarations
        private ExceptionCollector _EC = null;
        private URLHolder _UH = null;

        private KocAllianceList _KAL = null;

        private Boolean _fExecuteViewCourt = false;
        #endregion



        #region constructor / terminator
        public MainWindowViewModel()
        {
            _EC = new ExceptionCollector();
            _UH = new URLHolder(_EC);

            _KAL = new KocAllianceList(_EC, _UH);
        }

        ~MainWindowViewModel()
        {
            _KAL = null;
            _UH = null;
            _EC.Dispose();
            _EC = null;
        }
        #endregion



        #region private functions
        #endregion



        #region interface
        #region properties
        #region globals
        public ExceptionCollector EC
        {
            get
            {
                return _EC;
            }
        }

        public URLHolder UH
        {
            get
            {
                return _UH;
            }
        }

        public Boolean ExecuteViewCourt
        {
            get
            {
                return _fExecuteViewCourt;
            }
            set
            {
                _fExecuteViewCourt = value;
            }
        }
        #endregion 

        public KocAllianceList KAL
        {
            get
            {
                return _KAL;
            }
        }
        #endregion

        #region methods
        #endregion
        #endregion
    }
}
